<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxml="urn:schemas-microsoft-com:xslt"
  xmlns:site.library="urn:site.library"
  xmlns:umbraco.library="urn:umbraco.library"
  xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes"
  xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions"
  xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
  xmlns:examine="urn:examine"
  exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets site.library examine ">

  <xsl:output method="xml" omit-xml-declaration="yes"/>

  <xsl:param name="currentPage" />
  <xsl:variable name="SiteInfo" select="site.library:PageSite($currentPage/@id)"/>
  <xsl:variable name="Site" select="umbraco.library:GetXmlNodeById($SiteInfo/node/@id)"/>
  <xsl:variable name="IsCanvas" select="site.library:IsCanvas()" />

  <xsl:template match="/">    
    <span class="copyrights {site.library:ShortIf($IsCanvas, ' canvas_edit','')}">
      <xsl:if test="$IsCanvas">
          <xsl:attribute name="onclick">javascript:showEditNodeDialog('<xsl:value-of select="$SiteInfo/node/@id"/>','Edit Site Data, copyright text');return false;</xsl:attribute>
        </xsl:if>
      <xsl:value-of disable-output-escaping="yes" select="$Site/siteCopyright"/>
    </span>
  </xsl:template>

</xsl:stylesheet>